#include "StdAfx.h"
#include "sinistar.h"
#include "defender.h"
#include "machine/sinistarmachine.h"	//needs its own machine because of special sound cpu

static InputPort Port1 =
	{
		{
		{"Unknown",		0,				0x01,	I_HIGH},
		{"Unknown",		0,				0x02,	I_HIGH},
		{"Unknown",		0,				0x04,	I_HIGH},
		{"Unknown",		0,				0x08,	I_HIGH},
		{"Unknown",		0,				0x10,	I_HIGH},
		{"Unknown",		0,				0x20,	I_HIGH},
		{"Unknown",		0,				0x40,	I_HIGH},
		{"Unknown",		0,				0x80,	I_HIGH},
		}
	};

static InputPort Port2 =
	{
		{
		{"Button 1",	I_B1,		0x01,	I_HIGH},
		{"Button 2",	I_B2,		0x02,	I_HIGH},
		{"Unknown",		0,			0x04,	I_HIGH},
		{"Unknown",		0,			0x08,	I_HIGH},
		{"Start 1",		I_START1,0x10,	I_HIGH},
		{"Start 2",		I_START2,0x20,	I_HIGH},
		{"Unknown",		0,			0x40,	I_HIGH},
		{"Unknown",		0,			0x80,	I_HIGH},
		}
	};

static highscore_t highscore[] =
	{
//	{0xB260,0x60,0x00,0x48},
	{0,-1}
	};

Csinistar::Csinistar()
{
SetName("sinistar");						//set romset name
SetScreen(304,256,ROTATE_270);
SetHighScoreInfo(highscore);
SetPort(0,&Port1);
SetPort(1,&Port2);
SetPort(2,&defenderPort3);
AddROM("sinistar.10",	0xE000,0x1000,0x3d670417,ROM_CPU1);
AddROM("sinistar.11",	0xF000,0x1000,0x3162bc50,ROM_CPU1);
AddROM("sinistar.01",	0x10000,0x1000,0xf6f3a22c,ROM_CPU1);
AddROM("sinistar.02",	0x11000,0x1000,0xcab3185c,ROM_CPU1);
AddROM("sinistar.03",	0x12000,0x1000,0x1ce1b3cc,ROM_CPU1);
AddROM("sinistar.04",	0x13000,0x1000,0x6da632ba,ROM_CPU1);
AddROM("sinistar.05",	0x14000,0x1000,0xb662e8fc,ROM_CPU1);
AddROM("sinistar.06",	0x15000,0x1000,0x2306183d,ROM_CPU1);
AddROM("sinistar.07",	0x16000,0x1000,0xe5dd918e,ROM_CPU1);
AddROM("sinistar.08",	0x17000,0x1000,0x4785a787,ROM_CPU1);
AddROM("sinistar.09",	0x18000,0x1000,0x50cb63ad,ROM_CPU1);
AddROM("speech.ic7",		0xB000,0x1000,0xe1019568,ROM_CPU2);
AddROM("speech.ic5",		0xC000,0x1000,0xcf3b5ffd,ROM_CPU2);
AddROM("speech.ic6",		0xD000,0x1000,0xff8d2645,ROM_CPU2);
AddROM("speech.ic4",		0xE000,0x1000,0x4b56a626,ROM_CPU2);
AddROM("sinistar.snd",	0xF000,0x1000,0xb82f4ddb,ROM_CPU2);
AddROM("decoder.4",		0x0000,0x0200,0xe6631c23,ROM_PROM);
AddROM("decoder.6",		0x0200,0x0200,0x83faf25e,ROM_PROM);
}

CMachine *Csinistar::CreateMachine()
{
return(new CSinistarMachine());
}
